package com.itany.book.service;

import com.itany.exception.RequestParamsException;
import com.itany.pojo.Book;
import com.itany.pojo.User;

import java.util.List;
import java.util.Map;

/**
 * Created by tyh on 2018/9/23.
 */
public interface IBookService {

     void addDoc();

     List<Map<String,String>> findDoc(String keyWord);


    /**
     * 查找所有的图书类别用于侧边栏显示
     * @return
     */
    Map<String,Object> findAllTypes();

    /**
     * 根据书籍id查找书籍信息
     * @param id
     * @return
     */
    Map findById(String id) throws RequestParamsException;

    /**
     * 添加购物车
     */
    void addShoppingCar(String id, User user) throws RequestParamsException;

}
